package com.topvision.service.impl.face;

import com.topvision.mapper.glass.FaceAlarmMapper;
import com.topvision.model.glass.FaceAlarm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.topvision.service.face.FaceAlarmService;

@Service("faceAlarmService")
public class FaceAlarmServiceImpl implements FaceAlarmService {
	@Autowired
	private FaceAlarmMapper faceAlarmMapper;
	
	@Override
	public FaceAlarm queryObject(Integer id){
		return faceAlarmMapper.queryObject(id);
	}
	
	@Override
	public List<FaceAlarm> queryList(Map<String, Object> map){
		return faceAlarmMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return faceAlarmMapper.queryTotal(map);
	}
	
	@Override
	public void save(FaceAlarm faceAlarm){
		faceAlarmMapper.save(faceAlarm);
	}
	
	@Override
	public void update(FaceAlarm faceAlarm){
		faceAlarmMapper.update(faceAlarm);
	}
	
	@Override
	public void delete(Integer id){
		faceAlarmMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		faceAlarmMapper.deleteBatch(ids);
	}

    @Override
    public FaceAlarm queryObjectByMap(Map<String, Object> map){
        return faceAlarmMapper.queryObjectByMap(map);
    }

    @Override
    public List<FaceAlarm> queryByParam(Map<String, Object> map){
        return faceAlarmMapper.queryByParam(map);
    }
}
